//
//  GainInfoDataModel.m
//  Tongcheng
//
//  Created by 邢广范 on 2017/4/18.
//  Copyright © 2017年 Tongcheng. All rights reserved.
//

#import "GainInfoDataModel.h"
#import "GainInfoJobModel.h"

@implementation GainInfoDataModel

-(id)mj_newValueFromOldValue:(id)oldValue property:(MJProperty *)property{
    if([property.name isEqualToString:@"job"]){
        return [GainInfoJobModel mj_objectArrayWithKeyValuesArray:oldValue];
    }else if ([property.name isEqualToString:@"edu"]){
        return [GainInfoJobModel mj_objectArrayWithKeyValuesArray:oldValue];
    }else if ([property.name isEqualToString:@"income"]){
        return [GainInfoJobModel mj_objectArrayWithKeyValuesArray:oldValue];
    }else if ([property.name isEqualToString:@"height"]){
        return [NSString mj_objectArrayWithKeyValuesArray:oldValue];
    }else if ([property.name isEqualToString:@"married"]){
        return [GainInfoJobModel mj_objectArrayWithKeyValuesArray:oldValue];
    }
    return oldValue;
}

@end
